package world.criver.h50529.data;

import com.fazecast.jSerialComm.SerialPort;
import javafx.stage.Stage;
import world.criver.h50529.module.moEvent;
import world.criver.h50529.module.moGroup;
import world.criver.h50529.module.moListen;

import java.awt.*;
import java.util.ArrayList;

public class daData {
    /**
     * 开启监听
     */
    public static boolean start_listen=false;
    /**
     * 首页stage
     */
    public static Stage master;
    /**
     * 右键菜单
     */
    public static Stage popMenu;
    public static Stage popMenuParent;
    public static long tray_timestamp=0;
    /**
     * 图片素材路径
     */
    public static final String resources_material_path="/world/criver/h50529/material/";
    /**
     * fxml文件路径
     */
    public static final String resources_fxml_path="/world/criver/h50529/fxml/";
    public static TrayIcon tray;
    public static SerialPort[] serialPorts;
    /**
     * 事件库
     */
    public static ArrayList<moEvent> events=new ArrayList<>();
    /**
     * 监听库
     */
    public static ArrayList<moListen> listens=new ArrayList<>();
    /**
     * 转发库
     */
    public static ArrayList<moGroup> groups=new ArrayList<>();
    /**
     * 已经在使用的port
     */
    public static ArrayList<Integer> use_port=new ArrayList<>();
}
